//
//  YSUserModel.h
//  Yaoyle
//
//  Created by ZhaoXudong on 14-9-19.
//  Copyright (c) 2014年 ZhaoXudong. All rights reserved.
//

#import <Foundation/Foundation.h>

#define UserInfoName        @"user_name"
#define UserInfoMobile      @"user_mobile"
#define UserInfoPhotoUrl    @"user_photoUrl"
#define UserInfoSex         @"user_sex"
#define UserInfoId          @"user_id"
#define UserInfoScore       @"user_scoreAmount"

//@interface YSUserNamePhone : NSObject
//
//@end

@interface YSUserModel : NSObject

@property (nonatomic, strong)NSString *mobile;           //电话
@property (nonatomic, strong)NSString *scoreAmount;     //账户余额

@property (nonatomic, strong)NSString *name;            //名字
@property (nonatomic, strong)NSString *photoUrl;        //头像

@property NSInteger sex;                                //性别  Y＝男 N＝女
@property NSInteger userId;                             //id

@property NSInteger status;


- (id)initFromUserInfo:(NSDictionary *)userInfo;

+ (BOOL)isLogin;

- (BOOL)logout;

- (void)saveUserInfo;

- (BOOL)isHaveRole;

@end
